Intersoft ClientUI Documentation
Register<TType,TImpl>(String) Method



The type to be registered.
The type that will be instantiated when TType is resolved. The instance is created using the constructor with the most parameters, each parameter is resolved by the container.
The name this registration will be registered under.
Registers a implementation type to be instantiated when the the specified type is resolved based on the given name.
Syntax
Public Overloads Function Register
    (Of TType As Class,
     TImpl As {Class, TType})( _
   ByVal name As String _
) As IRegistration
Dim instance As IocContainer
Dim name As String
Dim value As IRegistration
 
value = instance.Register(Of TType, TImpl)(name)
public IRegistration Register<TType,TImpl>( 
   string name
)
where TType: class
where TImpl: class, TType
public:
IRegistration^ Registergeneric<typename TType>
generic<typename TImpl>
( 
   String^ name
) 
where TType: ref class
where TImpl: ref class, TType

Parameters

name
The name this registration will be registered under.

Type Parameters

TType
The type to be registered.
TImpl
The type that will be instantiated when TType is resolved. The instance is created using the constructor with the most parameters, each parameter is resolved by the container.

Return Value

An instance of IRegistration that can be used to configure how the get information about the registration, or change the lifetime manager.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IocContainer Class
IocContainer Members
Overload List

Send Feedback